package edu.ycu.aladdin.web.api.crawler;

import edu.ycu.aladdin.web.common.RestResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 2019-04-02 14:55
 */
@RequestMapping("/crawler")
public interface CrawlerAPI {

    @RequestMapping(value = "/creat",method = RequestMethod.POST)
    RestResponse createCrawler(@RequestParam("siteId") String siteId);

    @RequestMapping(value = "/satrt",method = RequestMethod.POST)
    RestResponse startCrawler(String crawlerId);
}
